/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sg.atom.entity;

import com.jme3.renderer.RenderManager;
import com.jme3.renderer.ViewPort;
import com.jme3.scene.Spatial;
import com.jme3.scene.control.AbstractControl;
import com.jme3.scene.control.Control;
import sg.atom.stage.WorldManager;

/**
 *
 * @author cuong.nguyenmanh2
 */
/**
 * <code>SpatialEntityControl</code> keep the link from the <code>Spatial</code> to the appropriate <code>Entity</code>.</br>
 * It's basiclly the low level control in the Atom architect.
 * It uses Animation and Character control 
 * and should be use by <code>SpatialSelectControl</code>, <code>AIControl</code> etc... 
 */
public class SpatialEntityControl extends AbstractControl {


    WorldManager worldManager;
    private SpatialEntity spatialEntity;


    public SpatialEntityControl(WorldManager worldManager, SpatialEntity spatialEntity) {
        this.worldManager = worldManager;
        this.spatialEntity = spatialEntity;

    }

    @Override
    protected void controlUpdate(float tpf) {
    }

    @Override
    protected void controlRender(RenderManager rm, ViewPort vp) {
    }

    public Control cloneForSpatial(Spatial spatial) {
        return null;
    }

    public SpatialEntity getEntity() {
        return spatialEntity;
    }
}
